package com.java.dao;

import com.java.model.AdvertisersAccount;
import com.java.model.AdvertisersWallet;
import com.java.model.Result;

import java.math.BigDecimal;
import java.util.List;

public interface AdvertisersAccountMapper extends BaseMapper<AdvertisersAccount>{

    /**
     * 广告主登录
     * @param advertisersAccount
     */
    AdvertisersAccount advertisingLogin(AdvertisersAccount advertisersAccount);

    /**
     * 广告主的启用禁用
     */
    void updateStatus(AdvertisersAccount advertisersAccount);


    /**
     * 查找广告主钱包信息
     */
    List<AdvertisersAccount> wallet(AdvertisersAccount advertisersAccount);

    /**
     * 根据手机号查询该广告主信息
     */
    AdvertisersAccount walletList(Integer id);

    /*根据id查询广告主的账户*/
    AdvertisersAccount recharge(int id);

    /*添加广告主钱包账号*/
    void addRecharge(AdvertisersWallet advertisersWallet);

    /*修改冻结金额*/
    void frozen(AdvertisersWallet advertisersWallet);

    /*修改可用余额*/
    void advertisersWalletModify(AdvertisersWallet advertisersWallet);
    /*给账号充值*/
    void money(AdvertisersWallet advertisersWallet);
    /**
     * 广告主金额充值
     */
    AdvertisersAccount addAmount(AdvertisersAccount advertisersAccount);


}
